﻿@model DotNetUniLodz.Models.UserModel

@{
    ViewBag.Title = "Zaloguj się";
    string ReturnUlr = ViewBag.ReturnUrl;
}
<div id="Content100">
    <h2>Logowanie</h2>
    @using (Html.BeginForm("Login", "Account", FormMethod.Post))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <fieldset id="CreateItem">
            <legend>Zaloguj się</legend>

            <div class="editor-label">
                Login           
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.User_login)
                @Html.ValidationMessageFor(model => model.User_login)
            </div>

            <div class="editor-label">
                Hasło           
            </div>
            <div class="editor-field">
                @Html.PasswordFor(model => model.User_pass)
                @Html.ValidationMessageFor(model => model.User_pass)
            </div>
            <p>
                @Html.CheckBox("rememberMe", false)
                <span style="font-size: 14px; margin-right: 10px;">zapamiętaj mnie</span><input type="submit" value="Zaloguj się" />
            </p>
        </fieldset>
        
        @Html.Hidden("ReturnUrl", ReturnUlr)
    }
    <div>
        Nie masz jeszcze konta? Oto <b>@Html.ActionLink("rejestracja", "Create", "Account", null, new { id = "Register", @class = "NormalLink" })</b>
    </div>
    <div>
        A może nie pamiętasz hasła? <b>@Html.ActionLink("Odzyskiwanie hasła", "ForgottenPassword", "Account", null, new { @class = "NormalLink" })</b>
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
